set mouse=a
set nu
set autoindent

set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4

set backup
set backupdir=$HOME/.vim/backup/
if exists("*mkdir") && !isdirectory($HOME."/.vim/backup")
    call mkdir($HOME."/.vim/backup")
endif

syntax on

let mapleader=","
nmap ; :
vmap : ;
nmap <C-n> gt
nmap <C-p> gT
imap <C-a> <HOME>
imap <C-e> <END>
nmap <Leader>n  :NERDTreeToggle<CR>

set fileencodings=utf-8,big5,euc-jp,gbk,euc-lr,utf-bom,iso8859-1
set termencoding=utf8


set laststatus=2
set statusline=%m%f%=[%{&fenc}]\ \Col\ %c,\ Line\ %l/%L

set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

let NERDTreeQuitOnOpen=1

" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'

Bundle 'L9'
Bundle 'The-NERD-tree'
Bundle 'ZenCoding.vim'
Bundle 'AutoComplPop'
Bundle 'FuzzyFinder'
Bundle 'The-NERD-Commenter'
Bundle 'taglist.vim'
Bundle 'c.vim'
Bundle 'cmd.vim'

filetype plugin indent on

set t_Co=16
color simonxander
